
<%= simple_form_for(@production_schedule) do |f| %>
  <%= f.error_notification %>
  <%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>

<div class="row">
	<div class="col-md-6">
		<%= f.association :order, label: '订单', collection: Order.all.map{|o| [o.order_code,o.id]} %>
	</div>
	<div class="col-md-6">
		
	</div>
</div>
<div class="row">	
	<div class="col-md-6">
		<%= f.input :task, label: '任务' %>
	</div>
	<div class="col-md-6">
		<div class="form-group date optional production_schedule_due_date form-group-valid">
			<label class="form-control-label date optional" for="production_schedule_due_date">完成日期</label>
			<div class="input-group">
				<input name="production_schedule[due_date]" class="form-control date-picker" id="production_due_date" type="text" data-date-format="yyyy-mm-dd" value="<%=@production_schedule.due_date%>">
				<span class="input-group-addon"> <i class="fa fa-calendar"></i> </span>
			</div>
		</div>
	</div>
</div>

<div class="horizontal-space"></div>
<div class="form-actions">
	<%= f.button :submit, '提交',class: "btn btn-blue btn-xs" %>
</div>

<% end %>
